#ifndef _HASH_
#define _HASH_

#include "main.h"
#include "avl.h"


#define SIZE_HASH 2048
#define SIZE_HASH_MAX SIZE_HASH

typedef struct {
    node avlThree[SIZE_HASH];
    sem_t *mutexLine;
    sem_t mutexHash;
} hashTable;

short int initHash(hashTable *);
short int inline insertHash(hashTable *, float *, unsigned int);

#endif
